package com.xqboss.apps.domain.synthesis;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xqboss.apps.domain.BaseTable;
import com.xqboss.apps.enums.synthesis.SynthesisActivityTypeEnum;
import com.xqboss.apps.enums.synthesis.SynthesisStatusEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 合成用户记录
 * </p>
 *
 * @author admin
 * @since 2023-11-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="SynthesisUserRecord对象", description="合成用户记录")
public class SynthesisUserRecord extends BaseTable implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @ApiModelProperty(value = "合成活动id")
    private Long synthesisId;

    @ApiModelProperty(value = "活动名称")
    private String name;

    @ApiModelProperty(value = "活动主图")
    private String mainImg;

    @ApiModelProperty(value = "合成活动类型[1普通合成，2持仓合成，3持图合成]")
    private SynthesisActivityTypeEnum synthesisType;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "规则id")
    private Long planId;

    @ApiModelProperty(value = "方案ID")
    private Long groupId;

    @ApiModelProperty(value = "合成方案名称")
    private String synthesisPlanName;

    @ApiModelProperty(value = "合成次数")
    private Integer num;

    @ApiModelProperty(value = "合成状态")
    private SynthesisStatusEnum status;

    @ApiModelProperty(value = "合成失败错误信息")
    private String errMsg;
}
